// index.js

Page({
	data: {
		gonggaolist: [],
		gong: "1"
	},
	onLoad() {
		this.getdata()
	},
	detail(e){
console.log(e)
wx.navigateTo({
	url: '/pages/ggxq/ggxq?id='+e.currentTarget.dataset.id
})
	},
	async getdata() {
		const res = await wx.http({
			url: "/announcement"
		})
		console.log(res)
		this.setData({
			gonggaolist: res.data
		})
		console.log(this.data.gonggaolist)
	},
	fkyq(){
		wx.navigateTo({
			url: '/pages/fkyq/fkyq',
		})
	},
})